const tradeModel = require('../models/trade.model.js');

module.exports = {
    /**
     * 添加交易记录
     */
    async addTradeRecord(formData) {
        let result = await tradeModel.addTradeRecord(formData);
        return result;
    },
    /**
     * 获取出售记录
     * 
     */
    async getSaleRecord(formData) {
        let result = await tradeModel.getSaleRecord(formData);
        return result;
    },
    /**
     * 获取购买记录
     */
    async getPurchaseRecord(formData) {
        let result = await tradeModel.getPurchaseRecord(formData);
        return result;
    }

    
}